#ifndef PLAYER_H
#define PLAYER_H
#include <SFML\Graphics.hpp>
#include <iostream>
class Player
{
public:
	Player();
	sf::Texture getplayerTexture();
	sf::Sprite getplayerSprite();
	enum direction{LEFT, RIGHT, UP, DOWN, UPRIGHT, UPLEFT, DOWNRIGHT, DOWNLEFT};
	void movePlayer(direction dir, sf::Time& delta);
	void updatePlayer();
	void playerLook(sf::RenderWindow& wnd);
	void inputCheck(sf::Time& elapsed);
	float getplayerHealth();
	void setplayerHealth(float val);
private:
	sf::Vector2i mousePos;
	sf::Texture playerTexture;
	sf::Sprite playerSprite;
	float x;
	float y;
	float speed;
	float health;
};
#endif